<%@ page contentType="text/html;charset=utf-8" language="java" %>
<%@ include file="/WEB-INF/views/jsp/common/taglibs.jsp" %>
<head>
    <title>后台管理</title>
    <%@ include file="/WEB-INF/views/jsp/common/meta.jsp" %>
    <link href="${ctx}/static/css/dpl-min.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/css/bui-min.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/css/main.css" rel="stylesheet" type="text/css"/>
</head>
<body>

<div class="header">

    <div class="dl-title">
        <!--system logo-->
        <%--<img src="${ctx}/static/images/top.png">--%>
    </div>

    <div class="dl-log">
        欢迎您，
        <span class="dl-log-user">
            <c:choose>
                <c:when test="${currentUser.securityUser.opRole ne operator}">
                    <fmt:message key="def.security.user.role.code.${currentUser.securityUser.opRole.code}.name" bundle="${def}"/>
                </c:when>
                <c:otherwise>
                    <c:choose>
                        <c:when test="${fn:length(currentUser.securityUser.screenName) gt 6}">
                            <c:out value="${fn:substring(currentUser.security.screenName, 0, 6)}..."/>
                        </c:when>
                        <c:otherwise>
                            <c:out value="${currentUser.securityUser.screenName}"/>
                        </c:otherwise>
                    </c:choose>
                </c:otherwise>
            </c:choose>
        </span>
        <a href="${ctx}/logout" title="退出系统" class="dl-log-quit">[退出]</a>
    </div>
</div>
<div class="content">
    <div class="dl-main-nav">
        <div class="dl-inform">
            <div class="dl-inform-title">
                <s class="dl-inform-icon dl-up"></s>
            </div>
        </div>
        <ul id="J_Nav"  class="nav-list ks-clear">
            <li class="nav-item dl-selected">
                <div class="nav-item-inner nav-home">系统管理</div>
            </li>
            <li class="nav-item dl-selected">
                <div class="nav-item-inner nav-supplier">商家管理</div>
            </li>
            <li class="nav-item dl-selected">
                <div class="nav-item-inner nav-user">会员管理</div>
            </li>
            <li class="nav-item dl-selected">
                <div class="nav-item-inner nav-order">订单管理</div>
            </li>
        </ul>
    </div>
    <ul id="J_NavContent" class="dl-tab-content">

    </ul>
</div>
<script type="text/javascript" src="${ctx}/static/lib/jquery/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="${ctx}/static/lib/bui/bui-min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/common/main.js"></script>
<script type="text/javascript" src="${ctx}/static/js/config.js"></script>
<script type="text/javascript">
    BUI.use('common/main', function () {
        var config = [
            {id: '1', homePage: '3', menu: [
                {text: '用户管理', items: [
                    {id: '2', text: '首页', href: '/index'},
                    {id: '3', text: '用户管理', href: '/security/user/list'}
                ]},
                {text: '基础数据管理', items: [
                    {id: '4', text: '地区管理', href: '/basedata/region/list'},
                    {id: '5', text: '物流公司管理', href: '/basedata/logistics/list'},
                    {id: '6', text: '类目管理', href: '/basedata/category/list'}
                ]}
            ]},
            {id: '51', homePage: '52', menu: [
                {text: '商家管理', items: [
                    {id: '52', text: '供应商管理', href: '/producer/list'},
                    {id: '53', text: '资质认证', href: '/aptitude/list'},
                    {id: '54', text: '商品管理', href: '/goods/list'}
                ]}
            ]},
            {id: '101', homePage: '102', menu: [
                {text: '会员管理', items: [
                    {id: '102', text: '会员管理', href: '/consumer/list'}
                ]}
            ]},
            {id: '151', homePage: '152', menu: [
                {text: '订单管理', items: [
                    {id: '152', text: '订单管理', href: '/order/list'}
                ]}
            ]}
        ];
        new PageUtil.MainPage({
            modulesConfig: config
        });
    });
</script>
</body>
</html>